from random import randint

l = [randint(0, 100) for x in range(10)]
print l

for i in range(len(l) - 1, 0, -1):
    for j in range(0, i):
        if l[j] > l[j + 1]:
            l[j], l[j + 1] = l[j + 1], l[j]

print l
